import request from '@/utils/request'

// 查询磁盘运维日志列表
export function listDiscLog(query) {
  return request({
    url: '/devops/discLog/list',
    method: 'get',
    params: query
  })
}

// 查询磁盘日志图表
export function getDiscLogGraph(query) {
  return request({
    url: '/devops/discLog/graph' ,
    method: 'get',
    params: query
  })
}

// 查询磁盘运维日志详细
export function getDiscLog(id) {
  return request({
    url: '/devops/discLog/' + id,
    method: 'get'
  })
}

// 新增磁盘运维日志
export function addDiscLog(data) {
  return request({
    url: '/devops/discLog',
    method: 'post',
    data: data
  })
}

// 修改磁盘运维日志
export function updateDiscLog(data) {
  return request({
    url: '/devops/discLog',
    method: 'put',
    data: data
  })
}

// 删除磁盘运维日志
export function delDiscLog(id) {
  return request({
    url: '/devops/discLog/' + id,
    method: 'delete'
  })
}

// 导出磁盘运维日志
export function exportDiscLog(query) {
  return request({
    url: '/devops/discLog/export',
    method: 'get',
    params: query
  })
}